package com.sanyu.controller.user;

import com.sanyu.pojo.dto.DevicePageQueryDTO;
import com.sanyu.pojo.dto.OrderPageQueryDTO;
import com.sanyu.pojo.vo.OrderVO;
import com.sanyu.result.PageResult;
import com.sanyu.result.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/user/order")
@Api("用户APP/出水订单相关结果")
public class OrderController {
    @PostMapping("/add")
    @ApiOperation("新增取水订单")
    public Result add(){
        return Result.success();
    }

    @GetMapping("/{id}")
    @ApiOperation("查看指定ID订单详细信息")
    public Result<OrderVO> detail(@PathVariable Long id){
        return Result.success(new OrderVO());
    }

    @GetMapping("/page")
    @ApiOperation("分页查询订单信息")
    public PageResult page(OrderPageQueryDTO orderPageQueryDTO){
        return new PageResult();
    }
}
